package com.dongdong.result;

public enum ResultEnums {

     USERNAME_AND_PASSWORD_NOT_NULL("1","用户名或密码不能为空"),
     USERNAME_AND_PASSWORD_ERROR("2","用户名或密码错误"),
     LOGIN_SUCCESS("3","登入成功"),
     SUCCESS("4","操作成功"),
     ERROR("5","操作失败"),
     TOKEN_FAIL("6","TOKEN无效"),
     AUTO_GENERATION_CODE_IS_NOT_AUTOCOMPLETED("7","已经超出最大限制，无法进行自动补齐"),
     IS_NOT_HAVE_PART("8","没有对应的规则组成，请先添加规则组成"),
    USERNAME_IS_OK("9","用户名已存在"),
    SENDMESSAGE_SUCCESS( "10","发送成功"),
    MSG_ERROR("11","验证码不正确"),
    ADD_CART_SUCCESS("12","加入购物车成功"),
    HOT_SUCCESS(  "13",  "预热成功"),
    SECKILL_ORDER_SUCCESSO(  "14",  "秒杀成功"),
    SECKILL_END(  "15",  "秒杀商品已经售空"),
    SECKILL_TIME_OUT(  "16",  "秒杀商品已经结束"),
    SECKILL_GOODS_NUM( "17",  "库存不足"),
    EMAIL_NOT_NULL( "18",  "邮箱不能为空"),
    EMAIL_FAIL( "19",  "邮箱发送失败"),
    EMAIL_SUCCESS( "20",  "邮箱发送成功");



    private String  code;
    private String  msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }




}
